<template>

<van-tabs v-model:active="active">
  <van-tab v-for="i in navData" :title="i.text" :key="i.id">
  </van-tab>
</van-tabs>

</template>

<script setup lang='ts'>
import {ref} from 'vue'
import {navItem,getNavList} from '@/service/api/index'

const active = ref<number>(0)
const navData = ref<navItem[]>([])

getNavList().then(res=>{
  navData.value = res.result
})

</script>

<style scoped lang='less'>

</style>